<?php $this->load->view('public/msearch'); 
	$this->load->helper("main");
?>
<div class="item bgr_highlight">
    <div class="main">
	    <div class="item pdt10 gray"> You are here : <a href="<?php echo base_url(); ?>" class="gray">Home</a>&nbsp;&raquo;&nbsp;<a href="javascript:void(0)" class="gray">Booking</a></div>
	    <div class="fl w640" style="padding-bottom:10px">
        <script type="text/javascript">
		$(document).ready(function(){
			$items = $("#send");
			$show  = $("#errors"); 
			$items.click(function(){
				$tour   = $("#booktitle").val();
				$durat  = $("#bookduration").val();
				$name   = $("#bookname").val();
				$email  = $("#bookmail").val();
				$phone  = $("#bookphone").val();
				$addre  = $("#bookadd").val();
				$country = $("#bookcountry").val();
				$find   = $("#bookfind").val();
				$adults = $("#bookadult").val();
				$childs = $("#bookchild").val();
				$info   = $("#bookinfo").val();
				$start  = $("#bookdate").val();
				$captch = $("#bookcaptcha").val();
				if($name == "" || $email == "" || $phone == "" || $country == "" || $captch == ""){
					$show.html("Please enter full information! (* <span style='color:#060;font-weight:bold;font-size:13px'>field is required!)</span>");
					$show.fadeIn("slow");
				}else{
					$.ajax({
						"url" 	: "<?php echo base_url(); ?>home/order/ajax",
						"type" 	: "POST",
						"data"  : "tours="+$tour+"&duration="+$durat+"&name="+$name+"&email="+$email+"&phone="+$phone+"&address="+$addre+"&country="+$country+"&find="+$find+"&adults="+$adults+"&childs="+$childs+"&info="+$info+"&start="+$start+"&captcha="+$captch,
						"async" : false,
						success : function(result){
							switch(result){
								case "1" : val = "Invalid captcha code"; break;
								case "2" : val = "Invalid email  address"; break;
								case "3" : val = "Invalid phone number"; break;
								case "4" : val = "<span style='color:#060;font-weight:bold'>Thank you for your booking. We will confirm the booking and answer all your questions you may have within 12 hours or earlier if possible</span>"; 
								$("#bookname").val("");
								$("#bookmail").val("");
								$("#bookphone").val("");
								$("#bookadd").val("");
								$("#bookadult").val("");
								$("#bookchild").val("");
								$("#bookinfo").val("");
								$("#bookdate").val("");
								$("#bookcaptcha").val("");
								break;
							}
							$show.fadeIn("slow");
							$show.html(val);
						}
					});	
				}
			});
		});
        </script>
	      <h1 class="item red lighter mgt15">SUBMIT YOUR BOOKING</h1>
          <form action="javascript:void(0)" method="post">
	      <div class="item lheight18">
            <div class="" style="font-weight:bold">
	        	<h2 style="color:#060;font-size:15px">Tour name : <?php echo $booking['tours_title']; ?></h2>
                <input type="hidden" class="bder_d5 item" id="booktitle" value="<?php echo $booking['tours_title']; ?>"/>
	        </div>
            <div class="" style="font-weight:bold">
	        	<h2 style="color:#F60;font-size:12px">Tour duration : <?php echo $booking['tours_duration']; ?></h2>
                <input type="hidden" class="bder_d5 item" id="bookduration" value="<?php echo $booking['tours_duration']; ?>"/>
	        </div>
            <div class="cls"></div>
	      	<div class="fl w190">
	        	Full Name <span class="red">*</span><br>
				<input type="text" class="bder_d5 item" id="bookname"/>
	        </div>
	        <div class="fl w190 pdl24">
	        	Email address <span class="red">*</span><br>
				<input type="text" class="bder_d5 item" id="bookmail" />
	        </div>
            <div class="cls"></div>
	        <div class="fl w190">
	        	Phone number <span class="red">*</span><br>
				<input type="text" class="bder_d5 item" id="bookphone" />
	        </div>
	        <div class="fl w190 pdl24">
	        	Address<br>
				<input type="text" class="bder_d5 item" id="bookadd" />
	        </div>
            <div class="cls"></div>
            <div class="fl w190" style="height:50px">
	        	Your country <span class="red">*</span><br>
				<select id="bookcountry">
                    <option value="">Select Country </option>
                    <option value="Afghanistan">Afghanistan </option>
                    <option value="Albania">Albania </option>
                    <option value="Algeria">Algeria </option>
                    <option value="American Samoa">American Samoa </option>
                    <option value="Andorra ">Andorra </option>
                    <option value="Angola ">Angola </option>
                    <option value="Anguilla ">Anguilla </option>

                    <option value="Antarctica ">Antarctica </option>
                    <option value="Antigua and Barbuda ">Antigua and Barbuda </option>
                    <option value="Argentina">Argentina </option>
                    <option value="Armenia">Armenia </option>
                    <option value="Aruba ">Aruba </option>
                    <option  value="Australia">Australia </option>

                    <option value="Austria">Austria </option>
                    <option value="Azerbaijan ">Azerbaijan </option>
                    <option value="Bahamas ">Bahamas </option>
                    <option value="Bahrain ">Bahrain </option>
                    <option value="Bangladesh">Bangladesh </option>
                    <option value="Barbados ">Barbados </option>

                    <option value="Belarus">Belarus </option>
                    <option value="Belgium">Belgium </option>
                    <option value="Belize ">Belize </option>
                    <option value="Benin ">Benin </option>
                    <option value="Bermuda">Bermuda </option>
                    <option value="Bhutan">Bhutan </option>

                    <option value="Bolivia">Bolivia </option>
                    <option value="Bosnia">Bosnia and Herzegovina </option>
                    <option value="Botswana ">Botswana </option>
                    <option value="Bouvet Island ">Bouvet Island </option>
                    <option value="Brasil">Brazil</option>
                    <option value="British Indian Ocean Territory ">British Indian Ocean Territory </option>

                    <option value="British Virgin Is">British Virgin Islands </option>
                    <option value="Brunei">Brunei</option>
                    <option value="Bulgaria">Bulgaria</option>
                    <option value="Burkina Faso ">Burkina Faso </option>
                    <option value="Burundi ">Burundi </option>
                    <option value="Canada">Canada </option>
                    <option value="Cambodia">Cambodia</option>

                    <option value="Cameroon ">Cameroon </option>
                    <option value="Cape Verde ">Cape Verde </option>
                    <option value="Cayman Islands ">Cayman Islands </option>
                    <option value="Central African Republic ">Central African Republic </option>
                    <option value="Chad ">Chad </option>
                    <option value="Chile">Chile </option>

                    <option value="China">China </option>
                    <option value="Christmas Island ">Christmas Island </option>
                    <option value="Cocos Islands ">Cocos Islands </option>
                    <option value="Colombia ">Colombia </option>
                    <option value="Comoros ">Comoros </option>
                    <option value="Congo ">Congo </option>

                    <option value="Cook Islands ">Cook Islands </option>
                    <option value="Costa Rica ">Costa Rica </option>
                    <option value="Croatia">Croatia </option>
                    <option value="Cuba">Cuba </option>
                    <option value="Cyprus ">Cyprus </option>
                    <option value="Czech">Czech Republic </option>

                    <option value="Denmark">Denmark </option>
                    <option value="Djibouti">Djibouti </option>
                    <option value="Dominica">Dominica </option>
                    <option value="Dominican Republic">Dominican Republic </option>
                    <option value="East Timor">East Timor </option>
                    <option value="Ecuador">Ecuador </option>

                    <option value="Egypt">Egypt </option>
                    <option value="El Salvador">El Salvador </option>
                    <option value="Equatorial Guinea">Equatorial Guinea </option>
                    <option value="Eritrea">Eritrea </option>
                    <option value="Estonia">Estonia </option>
                    <option value="Ethiopia">Ethiopia </option>

                    <option value="Falkland Islands">Falkland Islands </option>
                    <option value="Faroe Islands">Faroe Islands </option>
                    <option value="Fiji">Fiji </option>
                    <option value="Finland">Finland </option>
                    <option value="France">France </option>
                    <option value="Gabon">Gabon </option>

                    <option value="Gambia">Gambia </option>
                    <option value="Georgia">Georgia </option>
                    <option value="Germany">Germany </option>
                    <option value="Ghana">Ghana </option>
                    <option value="Gibraltar">Gibraltar </option>
                    <option value="Greece">Greece </option>

                    <option value="Greenland">Greenland </option>
                    <option value="Grenada">Grenada </option>
                    <option value="Guadeloupe">Guadeloupe </option>
                    <option value="Guam">Guam </option>
                    <option value="Guatemala">Guatemala </option>
                    <option value="Guinea">Guinea </option>

                    <option value="Guinea-Bissau">Guinea-Bissau </option>
                    <option value="Guyana">Guyana </option>
                    <option value="Haiti">Haiti </option>
                    <option value="Heard">Heard </option>
                    <option value="hn">Honduras </option>
                    <option value="Hongkong">Hong Kong </option>

                    <option value="Hungary">Hungary </option>
                    <option value="Iceland">Iceland </option>
                    <option value="India">India </option>
                    <option value="Indonesia">Indonesia </option>
                    <option value="Iran">Iran </option>
                    <option value="Iraq">Iraq </option>

                    <option value="Ireland">Ireland </option>
                    <option value="Israel">Israel </option>
                    <option value="Italy">Italy </option>
                    <option value="Ivory Coast">Ivory Coast </option>
                    <option value="Jamaica">Jamaica </option>
                    <option value="Japan">Japan </option>

                    <option value="Jordan">Jordan </option>
                    <option value="Kazakhstan">Kazakhstan </option>
                    <option value="Kenya">Kenya </option>
                    <option value="Kiribati">Kiribati </option>
                    <option value="Korea, North">Korea, North </option>
                    <option value="Korea, South">Korea, South </option>

                    <option value="Kuwait">Kuwait </option>
                    <option value="Kyrgyzstan">Kyrgyzstan </option>
                    <option value="Laos">Laos </option>
                    <option value="Latvia">Latvia </option>
                    <option value="Lebanon">Lebanon </option>
                    <option value="Lesotho">Lesotho </option>

                    <option value="Liberia">Liberia </option>
                    <option value="Libya">Libya </option>
                    <option value="Liechtenstein">Liechtenstein </option>
                    <option value="Lithuania">Lithuania </option>
                    <option value="Luxembourg">Luxembourg </option>
                    <option value="Macau">Macau </option>

                    <option value="Macedonia">Macedonia </option>
                    <option value="Madagascar">Madagascar </option>
                    <option value="Malawi">Malawi </option>
                    <option value="Malaysia">Malaysia </option>
                    <option value="Maldives">Maldives </option>
                    <option value="Mali">Mali </option>

                    <option value="Malta">Malta </option>
                    <option value="Marshall Islands">Marshall Islands </option>
                    <option value="Martinique">Martinique </option>
                    <option value="Mauritania">Mauritania </option>
                    <option value="Mauritius">Mauritius </option>
                    <option value="Mayotte">Mayotte </option>

                    <option value="Mexico">Mexico </option>
                    <option value="Micronesia">Micronesia </option>
                    <option value="Moldova">Moldova </option>
                    <option value="Monaco">Monaco </option>
                    <option value="Mongolia">Mongolia </option>
                    <option value="Montserrat">Montserrat </option>

                    <option value="Morocco">Morocco </option>
                    <option value="Mozambique">Mozambique </option>
                    <option value="Myanmar">Myanmar </option>
                    <option value="Namibia">Namibia </option>
                    <option value="Nauru">Nauru </option>
                    <option value="Nepal">Nepal </option>

                    <option value="Netherlands">Netherlands </option>
                    <option value="Netherlands Antilles">Netherlands Antilles </option>
                    <option value="New Caledonia">New Caledonia </option>
                    <option value="New Zealand">New Zealand </option>
                    <option value="Nicaragua">Nicaragua </option>
                    <option value="Niger">Niger </option>

                    <option value="Nigeria">Nigeria </option>
                    <option value="Niue">Niue </option>
                    <option value="Norfolk Island">Norfolk Island </option>
                    <option value="Northern Mariana Islands">Northern Mariana Islands </option>
                    <option value="Norway">Norway </option>
                    <option value="Oman">Oman </option>

                    <option value="Pakistan">Pakistan </option>
                    <option value="Palau">Palau </option>
                    <option value="Panama">Panama </option>
                    <option value="Papua New Guinea">Papua New Guinea </option>
                    <option value="Paraguay">Paraguay </option>
                    <option value="Peru">Peru </option>

                    <option value="Philippines">Philippines </option>
                    <option value="pn">Pitcairn Island </option>
                    <option value="Poland">Poland </option>
                    <option value="Portugal">Portugal </option>
                    <option value="Puerto Rico">Puerto Rico </option>
                    <option value="Qatar">Qatar </option>

                    <option value="Reunion">Reunion </option>
                    <option value="Romania">Romania </option>
                    <option value="Russia">Russia </option>
                    <option value="Rwanda">Rwanda </option>
                    <option value="S.Georgia">S.Georgia </option>
                    <option value="Saint Kitts &amp; Nevis">Saint Kitts &amp; Nevis </option>

                    <option value="Saint" >Saint Lucia </option>
                    <option value="Saint Vincent">Saint Vincent </option>
                    <option value="Samoa">Samoa </option>
                    <option value="San Marino">San Marino </option>
                    <option value="Sao Tome">Sao Tome </option>
                    <option value="Saudi Arabia">Saudi Arabia </option>

                    <option value="Senegal">Senegal </option>
                    <option value="Seychelles">Seychelles </option>
                    <option value="Sierra Leone">Sierra Leone </option>
                    <option value="Singapore">Singapore </option>
                    <option value="Slovakia">Slovakia </option>
                    <option value="Slovenia">Slovenia </option>

                    <option value="Somalia">Somalia </option>
                    <option value="South Africa">South Africa </option>
                    <option value="Spain">Spain </option>
                    <option value="Sri Lanka">Sri Lanka </option>
                    <option value="St. Helena">St. Helena </option>
                    <option value="St. Pierre">St. Pierre </option>

                    <option value="Sudan">Sudan </option>
                    <option value="Suriname">Suriname </option>
                    <option value="Svalbard">Svalbard </option>
                    <option value="Swaziland">Swaziland </option>
                    <option value="Sweden">Sweden </option>
                    <option value="Switzerland">Switzerland </option>

                    <option value="Syria">Syria </option>

                    <option value="Taiwan">Taiwan </option>
                    <option value="Tajikistan">Tajikistan </option>
                    <option value="Tanzania">Tanzania </option>
                    <option value="Thailand">Thailand </option>
                    <option value="Togo">Togo </option>

                    <option value="Tokelau">Tokelau </option>
                    <option value="Tonga">Tonga </option>
                    <option value="Trinidad">Trinidad </option>
                    <option value="Tunisia">Tunisia </option>
                    <option value="Turkey">Turkey </option>
                    <option value="Turkmenistan">Turkmenistan </option>

                    <option value="Turks">Turks </option>
                    <option value="Tuvalu">Tuvalu </option>
                    <option value="Uganda">Uganda </option>
                    <option value="Ukraine">Ukraine </option>
                    <option value="United" arab="" emirates="">United Arab Emirates </option>
                    <option value="United Kingdom">United Kingdom </option>
                    <option value="United States Of Ameria">USA </option>
                    <option value="Uruguay">Uruguay </option>
                    <option value="Uzbekistan">Uzbekistan </option>
                    <option value="Vanuatu">Vanuatu </option>
                    <option value="Vatican" city="">Vatican City </option>
                    <option value="Venezuela">Venezuela </option>
                    <option value="Vietnam">Vietnam </option>

                    <option value="Virgin Islands">Virgin Islands </option>
                    <option value="Wallis">Wallis </option>
                    <option value="Western Sahara">Western Sahara </option>
                    <option value="Yemen">Yemen </option>
                    <option value="Yugoslavia">Yugoslavia </option>
                    <option value="Zaire">Zaire </option>

                    <option value="Zambia">Zambia </option>
                    <option value="Zimbabwe">Zimbabwe </option>
                    <option value="other">Other</option>
                </select>
	        </div>
	        <div class="fl w190 pdl24">
	        	How did you find us<br>
				<select id="bookfind">
                    <option value="Google Adword">Google Adword</option>
                    <option value="Search Google">Search Google</option>
                    <option value="Friend">Friends</option>
                    <option value="Forum">Forum</option>
                    <option value="Other">Other</option>
                </select>
	        </div>
            <div class="cls"></div>
            <div class="fl w190">
	        	Number of Adults<br>
				<input type="text" class="bder_d5 item" id="bookadult"/>
	        </div>
	        <div class="fl w190 pdl24">
	        	Number of Children<br>
				<input type="text" class="bder_d5 item" id="bookchild"/>
	        </div>
            <div class="cls"></div>
            <div class="">
	        	Your information<br>
				<textarea name="" id="bookinfo" cols="30" rows="6" style="width:440px"></textarea>
	        </div>
            <div class="cls"></div>
            <div class="fl w190">
            	<table border="0" cellspacing="0" cellpadding="0">
				  <tr>
				    <td width="62"><span style="color:#F00">Captcha</span></td>
				    <td width="55"><img src="<?php echo base_url(); ?>home/ran_image" alt="" /></td>
				  </tr>
				</table>
	        </div>
            <div class="fl w190 pdl24">
	        	Departure Date <span class="red">*</span><br>
				<input type="text" class="bder_d5 item" id="bookdate" name="bookdate" readonly="readonly" />
	        </div>
            <div class="w190">
	        	Enter Captcha code <span class="red">*</span><br>
				<input type="text" id="bookcaptcha" class="bder_d5 item" />
	        </div>
            <div class="item pdt14">
	        	<input name="" type="checkbox" value="" checked="checked" class="fl"> Send me Wlink Travel latest offers – special discounts, last minute <br>promotions, free nights, free upgrades!
                <div id="errors" style="width:440px;text-align:center;margin-top:20px;padding-top:10px;color:#F00;border:1px dashed #F00;min-height:25px;display:none"></div>
            </div>
	        <input type="submit" class="fl bder_rdus3 bder_820000 bold white bgr_c50000 pdt8 pdb8 pdr24 mgt32" style="cursor:pointer;padding-left:24px" id="send" value="Book">
	      </div>
          </form>
	    </div>
        <div class="fr w260">
            <?php //$this->load->view('public/test'); ?>
            <?php $this->load->view('public/customer'); ?>
            <?php $this->load->view('public/news'); ?>
    	</div>
  </div>
